Skip to content

Release 4.1.0: instance debug/verbose overrides and public systemMsg helper - #128

Merged
cmp-202 merged 1 commit into
masterfrom
release/4.1.0
Nov 22, 2026
Merged

cmp-202 merged 1 commit into
masterfrom
release/4.1.0

Conversation

@cmp-202

@cmp-202 cmp-202 commented Nov 22, 2026

Copy link
Copy Markdown
Owner

What changed

Adds instance-level debug / verbose overrides and a public systemMsg()
helper. true forces a flag on for the whole run; false suppresses a host
that enables it; unset keeps the host value. Reading the instance property
reports the effective value. systemMsg(type, message, object) replaces the
internal _systemMsg and applies the standard host prefix and credential
redaction.

Also includes the test and documentation work staged for this release:
deterministic unit coverage for transport and state guards, host traversal,
shutdown flows, and behaviour hardening, plus two live tests for the default
command timeout and the TTY progress indicator.

Why

Handlers and callers previously had no stable public way to emit gated debug
or verbose output, and logging had to be configured per host. This makes both
behaviours instance-level and safe to call from user handlers.

How it was tested

  • npm test — 222 pass / 0 fail (current); 174 pass / 48 skipped (baseline)
  • npm run test:live:all — 30 passed, 0 failed
  • npm run check:changelog — changelog OK for 4.1.0
  • npm run check:build — lib/ in sync with src/
  • git diff --check — clean

Coverage (informational — local, Node v26.13.0)

Suite Target Lines Branches Functions
Unit (222 tests) all files 97.03% 90.91% 100%
Combined (unit ∪ live) all files 98.12% — —
Live (30 tests) all files 80.30% 59.43% 88.46%

Combined = 2874 of 2929 executable lines hit by at least one suite.
Miss overlap: 87 unit miss / 577 live miss / 55 missed by both /
32 live covers unit miss / 522 unit covers live miss. missed by both is down
from 206 at the initial review. Raw LCOV files are not attached due to size;
full commands and method are in test/coverage.md. Coverage is diagnostic,
not a release gate.

Checklist

  • npm test passes (build check, unit, and baseline)
  • Live tests run (npm run test:live:all)
  • README.md and docs/ updated for user-visible changes
  • CHANGELOG.md has an entry under 4.1.0
  • No removed 3.x API used

@cmp-202
cmp-202 merged commit 7274112 into master Nov 22, 2026
8 checks passed
@cmp-202
cmp-202 deleted the release/4.1.0 branch November 22, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant